<template>

	<swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000" >
		<swiper-item v-for="(item,index) in dataList">
			<view class="swiper-item">
				<image :src="item.imgUrl" class="swiper-img"></image>
			</view>
		</swiper-item>
	</swiper>

</template>

<script>
	export default{
		props:{
			dataList:Array
		},
		mounted() {
			
			console.log("这是轮播图");
	
		}
	}
</script>

<style>
	/* #ifdef MP-WEIXIN */
		swiper{
	/* 	margin-top: 8px; */
	}
	/* #endif */
	swiper{
		width: 100%;
		height: 400rpx;
	
	}

	.swiper-img{
			width: 100%;
			height: 400rpx;
		}
</style>